import request from "@/utils/request.js";

export function ApiToolkitList (data) {
    return request({
        url: '/v1/toolkit/list',
        method: 'get',
        params: data
    })
}

export function ApiDebugLog (data) {
    return request({
        url: '/v1/toolkit/debug-log',
        method: 'post',
        data: data
    })
}

export function ApiDetail  (data) {
    return request({
        url: '/v1/toolkit/detail',
        method: 'get',
        params: data
    })
}

export function ApiDiscontinue  (pid) {
    return request({
        url: '/v1/toolkit/discontinue/' + pid,
        method: 'post',
    })
}

export function ApiDebug (data) {
    return request({
        url: '/v1/toolkit/start',
        method: 'post',
        data: data
    })
}

export function ApiUpdate (data) {
    return request({
        url: '/v1/toolkit/update',
        method: 'post',
        data: data
    })
}

export function ApiCreate (data) {
    return request({
        url: '/v1/toolkit/create',
        method: 'post',
        data: data
    })
}

export function ApiDelete (id) {
    return request({
        url: '/v1/toolkit/' + id,
        method: 'delete',
    })
}

export function ApiHistoryLog (data) {
    return request({
        url: '/v1/toolkit/history-log',
        method: 'get',
        params: data
    })
}

export function ApiGetTags (data) {
    return request({
        url: '/v1/toolkit/tags',
        method: 'get',
        params: data
    })
}

export function ApiSort (data) {
    return request({
        url: '/v1/toolkit/sort',
        method: 'post',
        data: data
    })
}

export function ApiShare (data) {
    return request({
        url: '/v1/share',
        method: 'post',
        data: data
    })
}

export function ApiGetShare (params) {
    return request({
        url: '/v1/share',
        method: 'get',
        params: params
    })
}


export function ApiLately (params) {
    return request({
        url: '/v1/toolkit/lately',
        method: 'get',
        params: params
    })
}



